﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.DialogUI {
    import Engine.Managers.*;
    import Events.*;

    public class GetCoinsDialog extends GenericDialog {

        public function GetCoinsDialog(_arg1:String, _arg2:String="", _arg3:int=0, _arg4:Function=null, _arg5:Boolean=true, _arg6:int=0){
            super(_arg1, _arg2, _arg3, _arg4, "", "", _arg5);
        }
        override protected function processSelection(_arg1:GenericPopupEvent):void{
            if (_arg1.button == GenericDialogView.YES){
                StatsManager.count("get_coins", "click_ok");
                GlobalEngine.socialNetwork.redirect("money.php?ref=coinsDialog");
            } else {
                if (_arg1.button == GenericDialogView.NO){
                    StatsManager.count("get_coins", "click_cancel");
                };
            };
            _arg1.stopPropagation();
        }

    }
}//package Display.DialogUI 
